package cn.panda.edu.dao;

import cn.panda.edu.model.Video;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * 类描述：对视频表的增删改查  
 */
public interface VideoMapper {
	/**
	 * 
	* @Title: deleteByPrimaryKey 
	* @Description: 根据视频id删除视频
	* @param @param videoId
	* @param @return  
	* @return int
	 */
    int deleteByPrimaryKey(Integer videoId);
    /**
     * 
    * @Title: insert 
    * @Description: 添加视频
    * @param @param record
    * @param @return  
    * @return int
     */
    int insert(Video record);
    /**
     * 
    * @Title: insertSelective 
    * @Description: 动态添加视频
    * @param @param record
    * @param @return  
    * @return int
     */

    int insertSelective(Video record);
    /**
     * 
    * @Title: selectByPrimaryKey 
    * @Description: 根据视频id查找视频
    * @param @param videoId
    * @param @return  
    * @return Video
     */

    Video selectByPrimaryKey(Integer videoId);

    Video selectByPart(@Param("partId") Integer partId);
    /**
     * 
    * @Title: updateByPrimaryKeySelective 
    * @Description: 动态修改视频
    * @param @param record
    * @param @return  
    * @return int
     */

    int updateByPrimaryKeySelective(Video record);
    /**
     * 
    * @Title: updateByPrimaryKey 
    * @Description: 修改视频
    * @param @param record
    * @param @return  
    * @return int
     */
    int updateByPrimaryKey(Video record);
}